#include "ArmyState.h"

namespace ArmyStateNS {
	
void TemporalState::resume_previous_state()
{
	LOG_ASSERT(m_parent, "cannot find previous state");
	enter_state(m_name, this, m_parent);
}

void TemporalState::abandon_and_enter(BaseState *next_state)
{
	//	TODO	clear previous state
	m_parent->cancel();
	enter_state(m_name, this, next_state);
}

}